home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / Documentation / MPW Reference / Online Reference / Prog. Asst. Tools for MPW / Prog. Asst. for MPW ReadMe < prev    next >
Encoding:
Text File  |  1996-04-18  |  3.2 KB  |  77 lines  |  [TEXT/MPS ]

  1.         -----------------------------------------------
  2.         MPW Access for Macintosh Programmer’s Assistant
  3.         ----------------------------------------------- 
  4.  
  5. About MPW Access for Macintosh Programmer’s Assistant
  6. -----------------------------------------------------
  7. The scripts in this folder allow you to access Macintosh Programmer’s
  8. Assistant information from the MPW Shell. Using these scripts, 
  9. you can look up any term in the Macintosh Programmer’s Assistant
  10. databases or retrieve the template for a toolbox routine.
  11.  
  12.  
  13. Installing MPW Access for Macintosh Programmer’s Assistant
  14. ----------------------------------------------------------
  15. The folder that contains this file should also contain two
  16. other files:
  17.  
  18.     • A "UserStartup•MPTA" MPW script
  19.     • A "MPTA_MPWAccess" MPW script
  20.  
  21. To install these files, take the following steps:
  22.  
  23. 1.    Quit the MPW Shell if is currently running.
  24.  
  25. 2.    Drag the "UserStartup•MPTA" file into the "{MPW}Startup Items"
  26.     folder.
  27.     
  28. 3.    Drag the "MPTA_MPWAccess" file into the "{MPW}Scripts"
  29.     folder.
  30.  
  31. 4.    Start up the MPW Shell. During the startup process, you will
  32.     see a Standard File dialog box asking you for the location
  33.     of the QuickView browser. (QuickView is the search and
  34.     display engine for Macintosh Programmer’s Assistant.)
  35.     Locate QuickView and click the "Here It Is" button. The
  36.     location will be stored in a file called "MPTA_FullPathName"
  37.     for use during subsequent MPW startups.
  38.     
  39. 5.    When the startup script finishes, it will have installed
  40.     a new menu called "Info". That menu contains four commands,
  41.     “Home Page” (for going to the Macintosh Programmer’s Assistant
  42.     home page), "Look up Routine" (for looking up a toolbox or
  43.     library routine), "Look up MPW Command" (for looking up an
  44.     MPW command) and "Get Template" (for returning the template
  45.     of a toolbox or library routine).
  46.     
  47. 6.    As a test, type "NewWindow" on the MPW worksheet, highlight 
  48.     just the word "NewWindow", and select the "Look up Routine"
  49.     item in the Info Menu. MPW will send an Apple Event to the 
  50.     QuickView application, which will open and bring the page 
  51.     for the NewWindow toolbox routine to the front.
  52.     
  53. 7.    As another test, type "AddMenu" on the MPW worksheet, highlight 
  54.     just the word "AddMenu", and select the "Look up MPW Command" item 
  55.     in the Info Menu. MPW will send an Apple Event to the QuickView 
  56.     application, which will open and bring the page for the 
  57.     AddMenu MPW command to the front.
  58.  
  59. 8.    To test the template retrieval, type another toolbox call
  60.     into the worksheet (for example "NewCWindow"), highlight
  61.     the call name, and select the "Get Template" item on the
  62.     Info Menu. The template for the function call will be
  63.     retrieved and will replace the current selection. (Note
  64.     that the templates are provided only for Toolbox functions,
  65.     and are not available for MPW commands.)
  66.     
  67. That’s it! Subsequent startups of MPW will automatically use
  68. the QuickView application that you selected, and the "Look up Routine",
  69. "Look up MPW Command", "Get Template", and "Home Page" functions will
  70. automatically be available.
  71.  
  72. There is one more thing you need to be aware of:
  73.  
  74. •    If you move the QuickView application from its original
  75.     location, MPW will be unable to find it and you will again be
  76.     prompted to locate QuickView. After you locate it, everything
  77.     will work again.